#app {
  .main-container {
    min-height: 100%;
    transition: margin-left 0.28s;
    margin-left: 210px;
    position: relative;
  }

  .hideSliderLayout {
    margin-left: 0;

    .el-menu--horizontal {
      border-bottom: none;
    }
  }

  .transverseMenu {
    background-color: #ffffff;
  }

  .sidebar-container {
    transition: width 0.28s;
    width: 210px !important;
    background-color: #ffffff;
    height: 100%;
    position: fixed;
    font-size: 0px;
    top: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: 999;

    // reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      overflow-x: hidden !important;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0;
    }

    .el-scrollbar {
      height: 100%;
    }

    &.has-logo {
      .el-scrollbar {
        height: calc(100% - 60px);
        box-shadow: 0 5px 0px 0 rgba(0, 0, 0, 0.1);
        // border-right: 1px solid var(--el-border-color-light);
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      //display: inline-block;
      width: 100%;
      overflow: hidden;
    }

    .svg-icon {
      margin-right: 16px;
    }

    .sub-el-icon {
      margin-right: 12px;
      margin-left: -2px;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
      background: none;

      .router-link-active {
        .el-menu-item {
          color: #ffffff !important;
          background-color: #007cff !important;
        }
      }

      .el-menu-item:hover {
        color: #ffffff !important;
        background-color: rgba(#007cff, 0.8) !important;
      }

      .el-menu--inline {
        i {
          display: none;
        }
      }

      .el-sub-menu {
        .el-menu-item {
          width: 100%;
          display: inline-block;
          height: 48px;
          // line-height: 56px;
          background-color: rgba(#007cff, 0.08);
          padding-left: 50px;
        }
      }
    }

    // menu hover
    .sub-menu-title-noDropdown,
    .el-sub-menu__title {
      &:hover {
        color: #ffffff !important;
        background-color: rgba(#007cff, 0.8) !important;
      }
    }

    .el-sub-menu__title {
        &::after {
          content: '';
          width: 5px;
          height: 40px;
          position: absolute;
          left: 1px;
          background-color: #007cff;
          opacity: 0;
        }
      }

    .is-opened {
      .el-sub-menu__title {
        color: #007cff !important;

        &::after {
          content: '';
          opacity: 1;
          transition: all 1.5s;
        }
      }

      .el-sub-menu__title:hover {
        color: #ffffff !important;
      }

      .el-menu-item:hover {
        color: #ffffff !important;
      }

      .is-active {
        color: #ffffff !important;
        background-color: #007cff !important;
      }
    }

    .is-active {
      background-color: #ffffff !important;

      .el-sub-menu__title {
        color: #007cff !important;
      }

      .el-sub-menu__title:hover {
        color: #ffffff !important;
      }
    }


    & .nest-menu .el-sub-menu>.el-sub-menu__title,
    & .el-sub-menu .el-menu-item {
      min-width: 210px !important;

      &:hover {
        background-color: rgba(#007cff, 0.8) !important;
      }
    }
  }

  .hideSidebar {
    .sidebar-container {
      width: 60px !important;
    }

    .main-container {
      margin-left: 60px;
    }

    .sub-menu-title-noDropdown {
      padding: 0 !important;
      position: relative;

      .el-tooltip {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }

        .sub-el-icon {
          margin-left: 19px;
        }
      }
    }

    .el-submenu {
      overflow: hidden;

      &>.el-submenu__title {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }

        .sub-el-icon {
          margin-left: 19px;
        }

        .el-sub-menu__icon-arrow {
          display: none;
        }
      }
    }

    .el-menu--collapse {
      .el-sub-menu {
        &>.el-sub-menu__title {
          &>span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }

  .el-menu--collapse .el-menu .el-sub-menu {
    min-width: 210px !important;
  }

  // mobile responsive
  .mobile {
    .main-container {
      margin-left: 0px;
    }

    .sidebar-container {
      transition: transform 0.28s;
      width: 210px !important;
    }

    &.hideSidebar {
      .sidebar-container {
        pointer-events: none;
        transition-duration: 0.3s;
        transform: translate3d(-210px, 0, 0);
      }
    }
  }

  .withoutAnimation {

    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}

// when menu collapsed
.el-menu--vertical {
  &>.el-menu {
    .svg-icon {
      margin-right: 16px;
    }

    .sub-el-icon {
      margin-right: 12px;
      margin-left: -2px;
    }
  }

  .nest-menu .el-sub-menu>.el-sub-menu__title,
  .el-menu-item {
    &:hover {
      // you can use $subMenuHover
      background-color: rgba(#007cff, 0.8) !important;
    }
  }

  // the scroll bar appears when the subMenu is too long
  >.el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

    &::-webkit-scrollbar-track-piece {
      background: #d3dce6;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 20px;
    }
  }
}

.is-pure {
  .el-menu {
    .el-menu-item:hover {
      color: #ffffff !important;
    }

    .is-active {
      color: #ffffff !important;
      background-color: #007cff !important;
    }

    .is-active:hover {
      background-color: rgba(#007cff, 0.8) !important;
    }
  }
}